package com.project.bean;

/**
 *订单明细实体类
 */
public class OrderInfoBean {
    /**明细编号*/
    private int id;
    /**所属订单*/
    private OrderBean order;
    /**购买商品*/
    private ProductBean product;
    /**购买数量*/
    private int num;

    public OrderInfoBean(int orderId, int productId, int num) {
        this.order = new OrderBean();
        this.order.setId(orderId);
        this.product = new ProductBean();
        product.setId(productId);
        this.num = num;
    }

    public OrderInfoBean() {
    }

    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    public OrderBean getOrder() {
        return order;
    }

    public void setOrder(OrderBean order) {
        this.order = order;
    }

    public ProductBean getProduct() {
        return product;
    }

    public void setProduct(ProductBean product) {
        this.product = product;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }
}
